<%-- 
    Document   : inc_display_results
    Created on : Jan 10, 2013, 12:17:18 PM
    Author     : matt
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<div>
    <c:choose>
	<c:when test="${!empty resultatQueryAbsences}">	
	    <table class="table table-striped">
		<c:forEach items="${ resultatQueryAbsences.columnsName }" var="nomColonne" varStatus="boucle">
		    <th>${ nomColonne }</th>
		</c:forEach>
		</tr>
		<c:forEach items="${ resultatQueryAbsences.tuples }" var="listTuples" varStatus="boucle">
		    <tr>
		    <c:forEach items="${ listTuples.line }" var="listLine" varStatus="boucle">
			<td>${ listLine }</td>
		    </c:forEach>
		    </tr>
		</c:forEach>
	    </table>
	</c:when>
	<c:otherwise>
	    <c:choose>
		<c:when test="${ !empty form }">
		    <p>Aucun résultat ne matche votre requête.</p>
		</c:when>
		<c:otherwise>
		    <p>Aucune requête n'a été faite.</p>
		</c:otherwise>
	    </c:choose>
	</c:otherwise>
    </c:choose>
</div>